The following two scripts create multiple copies of your data on the target, but only one copy is active at a time. This allows you the time and availability to backup the inactive copy of data. This is especially helpful when you have applications with interdependent files.
Backups occur sequentially from the first file to the last file. Therefore, when you are using applications that have interdependent files, such as a database application whose database and log files must be synchronized, Double-Take Availability cannot be actively updating files on the target while the backup is running, or there becomes an opportunity for interdependent files to become mismatched, causing a corrupt application on the backup. For example, suppose the following scenario occurs on a target machine that contains a replica of a database.
At this point, the database file on the tape backup contains an extra update that the log file on the tape backup does not. The two files do not correspond, so the database on the tape backup will not be time consistent.
The two scripts identify an existing connection, disconnect it, establish a new connection, and initiate a difference mirror. The connections in the two scripts transmit the same data to two different locations, allowing you to backup the idle files on the inactive connection.
|
# Script 1 # $TheSource = "alpha"; $TheTarget = "beta"; $TheUser = "admin"; $ThePassword = "password"; $TheDomain = "domain.com"; $TheRepSet = "DataFiles"; login $TheSource $TheUser $ThePassword $TheDomain; login $TheTarget $TheUser $ThePassword $TheDomain; source $TheSource; $FirstConnection = conid $TheRepSet to $TheTarget map base c:\first_location; disconnect $FirstConnection; $SecondConnection = connect $TheRepSet to $TheTarget map base c:\second_location, nomirror; mirror start $SecondConnection different, checksum; |
|
# Script 2 # $TheSource = "alpha"; $TheTarget = "beta"; $TheUser = "admin"; $ThePassword = "password"; $TheDomain = "domain.com"; $TheRepSet = "DataFiles"; login $TheSource $TheUser $ThePassword $TheDomain; login $TheTarget $TheUser $ThePassword $TheDomain; source $TheSource; $SecondConnection = conid $TheRepSet to $TheTarget map base c:\second_location; disconnect $SecondConnection; $FirstConnection = connect $TheRepSet to $TheTarget map base c:\first_location, nomirror; mirror start $FirstConnection different, checksum; |